Python 3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import sys
>>> sys.platform
'win32'
>>> print(sys.version)
3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
>>> import os
>>> os.getcwd()
'C:\\Users\\lenovo'
>>> os.environ
environ({'ALLUSERSPROFILE': 'C:\\ProgramData', 'APPDATA': 'C:\\Users\\lenovo\\AppData\\Roaming', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'LAPTOP-42JFCL8S', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONFIGSETROOT': 'C:\\WINDOWS\\ConfigSetRoot', 'DRIVERDATA': 'C:\\Windows\\System32\\Drivers\\DriverData', 'FPS_BROWSER_APP_PROFILE_STRING': 'Internet Explorer', 'FPS_BROWSER_USER_PROFILE_STRING': 'Default', 'HOME': 'C:\\Users\\lenovo', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Users\\lenovo', 'LOCALAPPDATA': 'C:\\Users\\lenovo\\AppData\\Local', 'LOGONSERVER': '\\\\LAPTOP-42JFCL8S', 'NUMBER_OF_PROCESSORS': '8', 'ONEDRIVE': 'C:\\Users\\lenovo\\OneDrive', 'ONEDRIVECONSUMER': 'C:\\Users\\lenovo\\OneDrive', 'OS': 'Windows_NT', 'PATH': 'D:\\新建文件夹\\Xshell\\;D:\\Anaconda3;D:\\Anaconda3\\Library\\mingw-w64\\bin;D:\\Anaconda3\\Library\\usr\\bin;D:\\Anaconda3\\Library\\bin;D:\\Anaconda3\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;D:\\MATLAB R2019a\\runtime\\win64;D:\\MATLAB R2019a\\bin;D:\\MATLAB R2019a\\polyspace\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Users\\lenovo\\AppData\\Local\\Microsoft\\WindowsApps;', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC', 'PROCESSOR_ARCHITECTURE': 'AMD64', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 142 Stepping 12, GenuineIntel', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_REVISION': '8e0c', 'PROGRAMDATA': 'C:\\ProgramData', 'PROGRAMFILES': 'C:\\Program Files', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'PROGRAMW6432': 'C:\\Program Files', 'PSMODULEPATH': 'C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules', 'PUBLIC': 'C:\\Users\\Public', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\Users\\lenovo\\AppData\\Local\\Temp', 'TMP': 'C:\\Users\\lenovo\\AppData\\Local\\Temp', 'USERDOMAIN': 'LAPTOP-42JFCL8S', 'USERDOMAIN_ROAMINGPROFILE': 'LAPTOP-42JFCL8S', 'USERNAME': 'lenovo', 'USERPROFILE': 'C:\\Users\\lenovo', 'WINDIR': 'C:\\WINDOWS'})
>>> import datetime
>>> datetime.date.today()
datetime.date(2020, 9, 20)
>>> datetime.date.today().day
20
>>> datetime.date.today().month
9
>>> datetime.date.today().year
2020
>>> datetime.date.isoformat(datetime.date.today())
'2020-09-20'
>>> import time
>>> time.strftime("%H:%M")
'21:04'
>>> time.strftime("%A %p")
'Sunday PM'
>>> import html
>>> html.escape("This HTML fragment contains a <script>script</script> tag.")
'This HTML fragment contains a &lt;script&gt;script&lt;/script&gt; tag.'
>>> html.unescape("I &hearts;Python's &lt;standard library&gt;.")
"I ♥Python's <standard library>."
>>>
